// DrawElement.h: interface for the CDrawElement class.
//
//////////////////////////////////////////////////////////////////////

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define SHARP_TEXT	    1
#define SHARP_LINE	    2
#define SHARP_ELLIPSE	3
#define SHARP_RECT	    4
#define SHARP_KEY		5
#define SHARP_IMG		6
#define SHARP_VBOX	    7
#define SHARP_ARC	8

#define RED_KEY	    1
#define GREEN_KEY	2
#define YELLOW_KEY	3
#define BLUE_KEY	4

#define RED	    RGB(255,0,0)
#define GREEN	RGB(0,255,0)
#define YELLOW	RGB(255,255,0)
#define BLUE	RGB(0,0,255)


//#define TRAN_PROP 0.75
//#define LENG_PROP 0.75


#define SAVE_PATH	"C:\\mcf\\"

class CDrawElement :public CObject
{
    DECLARE_SERIAL(CDrawElement)
public:
	CString getPosStr();
	void parsePosStr(CString posStr);
	void setHeight(int height);
	void setWidth(int width);
	virtual void ShowProperties();
	virtual void Draw(CDC* pDC);
	CDrawElement();
	virtual ~CDrawElement();
	void Serialize(CArchive & ar);
	d_vt_tmpstrinfo DStrSlp(CString m_str, CString m_flag);
	COLORREF parseColorStr(CString colorStr);

	bool bIsSelected;
	int startX;
	int startY;
	int endX;
	int endY;
	int m_Type;
    static double dscrx;
	static double dscry;
	int LineWidth;
	COLORREF LineColor;
	int LineStyle;

	COLORREF BrushColor;
	BOOL m_bFill;
};